<?php

namespace App\Admin\Extensions\Tools;

use Encore\Admin\Admin;
use Encore\Admin\Grid\Tools\AbstractTool;

class UploadExcel extends AbstractTool
{
    protected function script()
    {
        return <<<EOT
    $('.import').click(function(){
        layer.open({
              title: '上传黑名单',
              type: 2, 
              content: '/admin/common/upload/black/excel',
              area:['482px', '300px'],
        }); 
    })
EOT;
    }

    public function render()
    {
        Admin::script($this->script());

        return view('admin.tools.upload');
    }
}